<?php
echo "<hr/>";
foreach(glob("*.jpg") as $file){
if($file != "1.jpg" && $file != "2.jpg"){
 echo "<img src = '$file'/>";
 }
}
 echo "<hr/>";
?>
